<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('语音记录', ~{::title}, ~{::content}, ~{::script})}"
      xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>工单管理-语音记录</title>
    <th:block th:replace="common/common :: loadJsCSS"/>
</head>
<body>

<div th:fragment="content">
    <div class="layui-card">
        <div class="layui-card-body">
            <p>通话录音</p>
            <table id="callRecordListTable" class="layui-table" lay-filter="callrecord-table"></table>
        </div>
        <div class="layui-card-body">
            <p>服务录音</p>
            <table id="workingRecordListTable" class="layui-table" lay-filter="callrecord-table"></table>
        </div>
    </div>

</div>
<script type="text/html" id="play-btn">
    {{#  if( d.tapeUrl != null && d.tapeUrl != ""){    }}
    <button type="button" class="layui-btn layui-btn-xs play-btn" data-src="{{d.tapeUrl}}">播放</button>
    {{#   }       }}
</script>
<script type="text/html" id="downloadMenu">
    {{#  if( d.type == 2 ){    }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="downloadEvent">下载</a>
    {{#   }       }}
</script>
<script th:inline="javascript">
    var callRecordList = [[${callRecordList}]];
    var workingRecordList = [[${workingRecordList}]]
    var layuiModel = {
        oms_work_modify_callrecord: "work/modify/zmn.oms.work.modify.callrecord"
    };
</script>

<script type="text/html" id="playRecordTpl">
    {{#  if( d.recordUrl != null && d.recordUrl != ""){    }}
    <button type="button" class="layui-btn layui-btn-xs play-record-btn" data-src="{{d.recordUrl}}" controlslist="nodownload" oncontextmenu="return false"
            th:if="${#authPermit.checkMenuPermit('/zs/work/working/record/play.action')}">播放
    </button>
    {{#   }       }}
</script>
<script type="text/html" id="dowonloadFileTpl">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="downloadRecordEvent"
       th:if="${#authPermit.checkMenuPermit('/zs/work/working/record/download.action')}">下载</a>
</script>
</body>
</html>